Sample Program
On-Line Demonstrations of FlexeLint and PC-lint (aka FlexeLint for Windows)
Off-By-One Example (C)
Bug of the Month Samples
This illustrates what FlexeLint/PC-lint does with an off-by-one error.
Modify this example, if desired, and then hit the Analyse Code button
/* Off-By-One Example */ #include
int main() { int i; int a[] = {1,2,3}; int n = sizeof(a)/sizeof(int); for(i=0;i<=n;i++) printf("a[%d]=%d\n",i,a[i]); return 0; }
Run FlexeLint on Bug of the Month Samples
Home
|
Examples
|
Contact
|
Order
PC-lint and FlexeLint are trademarks of Gimpel Software
Copyright © 2009, Gimpel Software